package com.example.demo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SettingActivity2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting2);

        TextView tvPNumber = findViewById(R.id.phoneNumber);
        Intent intent = new Intent();

        String phoneNumber = intent.getStringExtra("username");

        tvPNumber.setText(phoneNumber);

    }


}